package com.hiruss.efair.entities;

import java.io.File;
import java.io.Serializable;
import java.util.List;
import javax.persistence.*;

@Entity
@Table(name = "contacts")
public class Advertisement implements Serializable {

		@Id
		private long addId;
		private String sellerName;
		private String sellerContactNum;
		private String sellerEmail;
		private String item;
		private String description;
		private String category;
		private String dimensions;
		private String weight;
		private double price;
		private int numOfImages;
		private boolean paid;
		private boolean approved;
		private int piority;
		@Transient                        // to tell not to save this prperty
		private transient File datasheet;
		@Transient                        // to tell not to save this prperty
		private transient List<File> images;

		public long getAddId() {
				return addId;
		}

		public void setAddId(long addId) {
				this.addId = addId;
		}

		public String getCategory() {
				return category;
		}

		public void setCategory(String category) {
				this.category = category;
		}

		public File getDatasheet() {
				return datasheet;
		}

		public void setDatasheet(File datasheet) {
				this.datasheet = datasheet;
		}

		public String getDescription() {
				return description;
		}

		public void setDescription(String description) {
				this.description = description;
		}

		public String getDimensions() {
				return dimensions;
		}

		public void setDimensions(String dimensions) {
				this.dimensions = dimensions;
		}

		public List<File> getImages() {
				return images;
		}

		public void setImages(List<File> images) {
				this.images = images;
		}

		public String getItem() {
				return item;
		}

		public void setItem(String item) {
				this.item = item;
		}

		public double getPrice() {
				return price;
		}

		public void setPrice(double price) {
				this.price = price;
		}

		public String getSellerContactNum() {
				return sellerContactNum;
		}

		public void setSellerContactNum(String sellerContactNum) {
				this.sellerContactNum = sellerContactNum;
		}

		public String getSellerEmail() {
				return sellerEmail;
		}

		public void setSellerEmail(String sellerEmail) {
				this.sellerEmail = sellerEmail;
		}

		public String getSellerName() {
				return sellerName;
		}

		public void setSellerName(String sellerName) {
				this.sellerName = sellerName;
		}

		public String getWeight() {
				return weight;
		}

		public void setWeight(String weight) {
				this.weight = weight;
		}

		public int getNumOfImages() {
				return numOfImages;
		}

		public void setNumOfImages(int numOfImages) {
				this.numOfImages = numOfImages;
		}

		public boolean isApproved() {
				return approved;
		}

		public void setApproved(boolean approved) {
				this.approved = approved;
		}

		public boolean isPaid() {
				return paid;
		}

		public void setPaid(boolean paid) {
				this.paid = paid;
		}

		public int getPiority() {
				return piority;
		}

		public void setPiority(int piority) {
				this.piority = piority;
		}
		
		
}
